using UnityEngine;
using UnityEditor; 
using System.Collections;
using System.Collections.Generic;



[CustomEditor(typeof(AddCameraEffect))]  
public class AddCameraEffectInspector : Editor
{
	private AddCameraEffect effect;
	public override void OnInspectorGUI () 
	{  
		effect = target as AddCameraEffect;
		effect.camEffectFlags = (CamEffect)EditorGUILayout.EnumMaskField ( "CamEffect", effect.camEffectFlags );

		if((effect.camEffectFlags & CamEffect.SetTarget) != 0)
        {
            EditorGUILayout.LabelField("target");
            effect.target = (Transform)EditorGUILayout.ObjectField(effect.target,typeof(Transform),true);
        }
        if((effect.camEffectFlags & CamEffect.ChangePosition) != 0)
		{
            EditorGUILayout.LabelField("angle");
            effect.angle = EditorGUILayout.FloatField(effect.angle);

            EditorGUILayout.LabelField("distance");
            effect.distance = EditorGUILayout.FloatField(effect.distance);

            EditorGUILayout.LabelField("height");
            effect.height = EditorGUILayout.FloatField(effect.height); 

            EditorGUILayout.LabelField("ResetCameraAngle");
            effect.resetCameraAngle = EditorGUILayout.Toggle(effect.resetCameraAngle);
        }

		if((effect.camEffectFlags & CamEffect.Shake) != 0)
		{
            effect.shakeData.rotationAmount = EditorGUILayout.Vector3Field("rotationAmount",effect.shakeData.rotationAmount);
            effect.shakeData.shakeAmount = EditorGUILayout.Vector3Field("shakeAmount",effect.shakeData.shakeAmount);
            effect.shakeData.shakeDuration = EditorGUILayout.FloatField("shakeDuration",effect.shakeData.shakeDuration);
        }
        
        if((effect.camEffectFlags & CamEffect.Mask) != 0)
		{
            
        }

		if((effect.camEffectFlags & CamEffect.RadicalBlur) != 0 )
		{
            
        }

		if((effect.camEffectFlags & CamEffect.DOF) != 0 )
		{
            
        }
	}
 

}

